import type { TActive } from './../../types/data.d'
import { defineStore } from 'pinia'

const footerStore = defineStore('footer', {
  state: () => {
    return {
      tabs: ['All', 'Active', 'Completed'] as TActive[],
      active: 'All' as TActive
    }
  },
  actions: {
    changeActive(active: TActive) {
      this.active = active
    }
  }
})

export default footerStore